package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.pojo.Order;
import com.itheima.pojo.vo.OrderVO;

import java.util.List;
import java.util.Map;

public interface OrderMapper {
    public void add(Order order);
    public List<Order> findByCondition(Order order);
    public Map findById4Detail(Integer id);
    public Integer findOrderCountByDate(String date);
    public Integer findOrderCountAfterDate(String date);
    public Integer findVisitsCountByDate(String date);
    public Integer findVisitsCountAfterDate(String date);
    public List<Map> findHotSetmeal();

    Page<OrderVO> queryByCondition(String queryString);

    void updateOrderStatusById(int id);

    void updateNotOrderStatusById(int id);

    List<Map<String, Object>> findAbleNumbers();

    void updateReservations(String orderDate);
}
